package com.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Classname UserConfigration
 * @Description TODO
 * @Date 2020/8/26 16:15
 * @Created by lifutao
 */
//@Component
@ConfigurationProperties("user.wat")
public class UserConfigration {
	private String name = "dafault";
	private String sex = "woman";
	private Integer age = 0;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	@Override
	public String toString() {
		return "UserConfigration{" +
				"name='" + name + '\'' +
				", sex='" + sex + '\'' +
				", age=" + age +
				'}';
	}
}
